/*
@Time : 2019/2/26 0026 19:31
@Author : visons
*/
package handler

import (
	"github.com/gin-gonic/gin"
	"web-model/service/redis_svc"
)

func UserLogin(c *gin.Context) {
	cl := redis_svc.GetClient()
	cl.Close()
	cl.Set("name", "213", 0)

	c.SetCookie("name", "123456", 30, "/", "", false, true)
	c.JSON(200, "ok")
}

func Hellowrold(c *gin.Context) {
	c.JSON(200, "hello wrold 1235")
}
